import io from 'socket.io-client'

const socket = io.connect('http://122.224.234.189:60001')

function subscribeToTimer(roomname, cb) {
  socket.on(roomname, res => cb(null, res))
  socket.emit('subscribeToTimer', 1000)
}

export { subscribeToTimer }